package com.shihb.structuralpatterns.flyweightpattern;/**
 *Description:
 *Version:1.0.0
 *@author shihb
 *@date 2020/7/20 21:35
 */
public class ConcreteWebsite implements  Website {

  private String type;

  public ConcreteWebsite(String type) {
    this.type = type;
  }

  @Override
  public void use(User user) {
    System.out.println(user.getName() +"正在使用"+type+"形式的网站");
  }
}
